package com.hezuti.common.utils;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
public class ActionUtil{
  public static Action getAction()
  {
    if ((ActionContext.getContext().getValueStack().peek() instanceof Action)) {
      return (Action)ActionContext.getContext().getValueStack().peek();
    }
    return (Action)ActionContext.getContext().getActionInvocation().getAction();
  }
}